#include <iostream>
#include <windows.h>
#include "vrtsVersion/vrtsVersion.hpp"

void ShowUsage()
{
    std::cout << "Usage:" << std::endl;
    std::cout << "\tvrtsVersionReader file" << std::endl; 
}

void main(int argc, char** argv)
{
    if(argc == 1) 
    {
        ShowUsage();
        return;
    }

    auto s = argv[1];
    std::cout << s << std::endl;
    auto fileInfo = vrts::version::GetFileVersionInfoLW(s);
    std::cout << "companyName:      " << fileInfo.companyName << std::endl;
    std::cout << "productName:      " << fileInfo.productName << std::endl;
    std::cout << "productVersion:   " << fileInfo.productVersion << std::endl;
    system("pause");
}